package com.neusoft.elmboot.service;

import java.math.BigDecimal;

import com.neusoft.elmboot.po.Point;

public interface PointService {

    //新增积分库
    public int savePoint(String userId);

    //根据用户id查询积分
    public Point getPointByUserid(String userId);

    //更新积分
    public int updatePointCount(String userId, BigDecimal count);

    //使用积分
    public int usePoint(String userId, BigDecimal count);

    //增加积分
    public void addPoints(String userId, BigDecimal count,String type);
}
